From 8b7001f937d2abb40d49e3c6a3085aa4909b07b6 Mon Sep 17 00:00:00 2001 From: mcarton Date: Fri, 15 Jan 2016 16:36:09 +0100 Subject: [PATCH] Remove unnecessary mut MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix all of Clippy’s unnecessary_mut_passed warnings. --- src/cargo/ops/cargo_test.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/ops/cargo_test.rs b/src/cargo/ops/cargo_test.rs index 28a19077f..f4b23c034 100644 --- a/src/cargo/ops/cargo_test.rs +++ b/src/cargo/ops/cargo_test.rs @@ -93,7 +93,7 @@ fn run_unit_tests(options: &TestOptions, shell.status("Running", cmd.to_string()) })); - if let Err(e) = ExecEngine::exec(&mut ProcessEngine, cmd) { + if let Err(e) = ExecEngine::exec(&ProcessEngine, cmd) { errors.push(e); if !options.no_fail_fast { break @@ -166,7 +166,7 @@ fn run_doc_tests(options: &TestOptions, try!(config.shell().verbose(|shell| { shell.status("Running", p.to_string()) })); - if let Err(e) = ExecEngine::exec(&mut ProcessEngine, p) { + if let Err(e) = ExecEngine::exec(&ProcessEngine, p) { errors.push(e); if !options.no_fail_fast { return Ok(errors); -- 2.30.2